﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using SpriteClasses;

namespace FrostFights
{
    public class IceSpear : Projectile
    {
        protected static float initialSpeed = 500f;
        protected Vector2 normalizedAngle;

        public IceSpear(Vector2 firingPosition)
            : base(Game1.iceSpearImg, 1.5f, Game1.Gravity + new Vector2(0, 2000), firingPosition, new Vector2(0, 500), 0.0f, initialSpeed, 0.5f, SpriteEffects.None)
        {
            Game1.soundThrowIceSpear.Play();
            damage = 50;
        }

        public override void Update(GameTime gameTime, GraphicsDevice Device)
        {
            base.Update(gameTime, Device);
            if (position.Y >= Device.Viewport.Height - 100)
            {
                Active = false;
            }

            if (Active)
            {

            }
        }
    }
}
